#ifndef _TIMER_H_
#define _TIMER_H_
#include "system.h"
#if ELECT
void TIM3_Init(void);
void TIM4_Init(void);
void PWM_SetCompare3(uint16_t Compare);
void PWM_SetCompare6(uint16_t Compare);
#endif
typedef void(*pTim3Init)(void);
typedef void(*pTim4Init)(void);
typedef void(*pPwmSetCompare3)(uint16_t);
typedef void(*pPwmSetCompare2)(uint16_t);
typedef struct{
    pTim3Init Ptim3Init;
    pTim4Init Ptim2Init;
    pPwmSetCompare3 PpwmSetCompare3;
    pPwmSetCompare2 PpwmSetCompare2;
}timer_t;
timer_t *timerCreate(void);
#endif
